projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2545e1
)
GtkButton: Also handle activate from mouse events.
author
Carlos Garnacho
<carlosg@gnome.org>
Tue, 17 Aug 2010 13:43:08 +0000
(15:43 +0200)
committer
Carlos Garnacho
<carlosg@gnome.org>
Tue, 17 Aug 2010 13:45:17 +0000
(15:45 +0200)
gtk/gtkbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkbutton.c
b/gtk/gtkbutton.c
index e9527c189a3ff5ea005e244522d56214d64a797e..d9d10478d9c583ce66a88f9c5f8e5adc4e43d9b8 100644
(file)
--- a/
gtk/gtkbutton.c
+++ b/
gtk/gtkbutton.c
@@
-1827,6
+1827,9
@@
gtk_real_button_activate (GtkButton *button)
priv = GTK_BUTTON_GET_PRIVATE (button);
device = gtk_get_current_event_device ();
+ if (device && device->source != GDK_SOURCE_KEYBOARD)
+ device = gdk_device_get_associated_device (device);
+
g_return_if_fail (device && device->source == GDK_SOURCE_KEYBOARD);
if (gtk_widget_get_realized (widget) && !button->activate_timeout)